import type { IssuingInvoicesHistoryItemDetailData } from '@/types/api'

interface FetchIssuingInvoicesHistoryDetailAPIResData {
  code: number
  msg: string
  time: string
  data: IssuingInvoicesHistoryItemDetailData
}

interface FetchIssuingInvoicesHistoryDetailAPIParams {
  id: string
}

export function fetchIssuingInvoicesHistoryDetailAPI(params: FetchIssuingInvoicesHistoryDetailAPIParams, token: string) {
  return httpInstance.get<FetchIssuingInvoicesHistoryDetailAPIResData, FetchIssuingInvoicesHistoryDetailAPIParams>(
    '/api/order/invoiceorderhistorydetail',
    { params, headers: { token } },
  )
}
